<!DOCTYPE html>
<html>
<head>
	<title>阳新帝豪装饰后台---角色详情</title>
	{include file="public/head" /}
	{load href="/static/js/publicAdd.js" /}
</head>
<body class="childrenBody">
<form class="layui-form" action="" lay-filter="example" method="post"  enctype="multipart/form-data">
	<div class="layui-form-item">
		<label class="layui-form-label">角色名称</label>
		<div class="layui-input-block">
			<input type="text" name="name" value="{$info.name}"  lay-verify="title" autocomplete="off" placeholder="请输入角色名称" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">角色别称</label>
		<div class="layui-input-block">
			<input type="text" name="role_alias" value="{$info.role_alias}"  lay-verify="title" autocomplete="off" placeholder="请输入角色别名" class="layui-input">
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">父级角色</label>
		<div class="layui-input-block">
			<select name="parentId" lay-verify="required">
                {volist name="allRole" id="vo"}
				<option value="{$key}" {if condition="$info.parent_id == $vo "}selected {/if}  >{$vo}</option>
                {/volist}
			</select>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">权限菜单</label>
		<div class="layui-input-block">
			{volist name="authMenu" id="vo"}
				<input type="checkbox" name="authMenu[]" title="{$vo.name}" <?php if(isset($info['auth'][$vo['id']])){ echo 'checked';} ?>  value="{$vo.id}" >
			{/volist}
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">是否允许后台登陆</label>
		<div class="layui-input-block">
			<input type="radio" name="is_admin_login" value="1" {if condition="$info.is_admin_login == true "}checked {/if} title="允许">
			<input type="radio" name="is_admin_login" value="0" title="不允许">
		</div>
	</div>
	<input type="hidden" value="{$info.id}" name="id">
	<input type="hidden" value="{$addUrl}" id="addUrl">
	<div class="layui-form-item">
		<div class="layui-input-block">
			<button class="layui-btn" lay-submit="" lay-filter="submit" >立即提交</button>
		</div>
	</div>
</form>
</body>
</html>